", "description": "Management my everyday's task lists.", "browser_action": { "default_icon": "icon.png" , "default_title": "My Task List", "default_popup": "popup.html" } }
Name indicates the application name, version indicates the version number, and description indicates the function description. These can be seen after the extension is installed. See:
Browser_action indicates that t
feeling is that it is not appropriate for the development of Gmailassist, which does not have much local storage, and there is no extension that needs to perform complex queries locally.Second, downloadTo initiate a file download, the Chrome extension must be done through the chrome.downloads API. There's nothing to understand, just take a good look at the docum
easy to useThe basic usage of stylish is very simple, install stylish from the official website to your browser. In the stylish Options menu you can update, deactivate, uninstall, and edit the installed CSS, which is similar to Chrome's extension management.* Different browser interface, but using the same method, this article takes Chrome as an exampleNow that your stylish is empty, the next step is to ad
(...))void removeListener(function callback(...))bool hasListener(function callback(...))
5. Browsing HistoryThe chorme. history module is used to interact with the page records accessed by the browser. You can add, delete, and query browser history records.
5.1 configuration in manifest. json
{ "name": "My extension", ... "permissions": [ "history" ], ...}
6. Plug-in managementThe chrome. management modul
= localstorage[' name '];Localstorage is not cross-domain, so the localstorage of different domain names are non-interference. For example, a value is stored on the jgb.com, and www.jgb.com cannot access it, and vice versa.Localstorage in Chrome extensionsThe localstorage in the extension is nothing different, just have a note point, content_script in the localstorage is stored in the corresponding domain
, Bing, Wolfram Alpha and their own search technology, the next generation search engine that focuses on smart and privacy protection. the function of this plug-in is to display a duckduckgo quick search window, saving you the trouble of opening a new window. however, this plug-in is not frequently used, because I often get used to directly dragging what I want to search to the tab bar for search or highlight to search. however, it is always useful to keep it.
This product also displays a d
each extension
Nsxuldocument
Start xulrunner
Figure9 Extended Startup Process
The Startup Process of the extension is as follows:Figure 9As shown in:
The nsxredirprovider of Toolkit reads extensions. ini and extracts the chrome. manifest file for each
addition, the main reason is that chrome extensions do not currently provide widgets that are not similar to Firefox and can be suspended on all pages.
* ** Browser action's popup.html limits the display size, which can only be about pixels.Step 2
Create the folder required for expansion, and place the manifest. JSON file below-declare the expression of the plug-in, dependency files, and so on.
Page action example:
{"Name": "My
(extensions) are essentially web pages that can use all the browser-provided APIs, from XMLHttpRequest to JSON to HTML5.Actually understand this point, then our purpose is very clear, to do a clear page ads plug-in, the core is to write a script file, injected into the page we visit, by matching the elements of the DOM node of the ad, kill it to clear . to create an extended directory:Each plug-in extension should contain the following files:
) are essentially web pages that can use all the browser-provided APIs, from XMLHttpRequest to JSON to HTML5.Actually understand this point, then our purpose is very clear, to do a clear page ads plug-in, the core is to write a script file, injected into the page we visit, by matching the elements of the DOM node of the ad, kill it to clear.To create an extended directory:Each plug-in extension should contain the following files:
A manifest f
also be very easy to useThe basic usage of stylish is very simple, install stylish from the official website to your browser. In the stylish Options menu you can update, deactivate, uninstall, and edit the installed CSS, which is similar to Chrome's extension management.* Different browser interface, but using the same method, this article takes Chrome as an exampleNow that your stylish is empty, the next
have problems in different themes, and the extensions should be eye-catching.Try to use the alpha channel and slide your icon edge. Because many users use themes, your icon should be good in various backgrounds.Don't keep flashing your icon, which is quite annoying.
2. Right-click the menuYou can add right-click menu items for different types of objects (slice, link, and page.
You can add multiple right-click menu items as needed. Multiple shortcut menu items added to an
name = localstorage[' name '];Localstorage is not cross-domain, so the localstorage of different domain names are non-interference. For example, a value is stored on the jgb.com, and www.jgb.com cannot access it, and vice versa.Localstorage in Chrome extensionsThe localstorage in the extension is nothing different, just have a note point, content_script in the localstorage is stored in the corresponding do
Gmail API.
first, authorization and interface displayAfter the user clicks on the Address bar icon, call the previous one mentioned in the library for the Chrome extension for OAUTH2 authorization function authorize to complete the authorization (details can see its source code, very intuitive). and sends a message to the content script of the current page to display the Gmailassist UI by modifying t
There are two main reasons for wanting to play chrome plug-ins recently. One is that some time ago I was not satisfied with the functionality of chrome new tab, and the existing plug-ins could not meet the requirements. because the interface design is really my obstacle and my own needs are not urgent, I did not do it. The other is recently I want to find an ipad mini on the company's intranet, it is often
I have always been interested in Chrome's extended development. before the Spring Festival, I customized an extended development plan for myself. The extended topic is to enhance the replication function. I have referred to the copy fixer and autocopy extensions. I have recorded this plan on the note, and have been thinking about how to write this extension for a while. I think this method is quite good. There are goals in the writing process.
Copy
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.